package net.peelmeagrape.hibernate.sql;

import net.peelmeagrape.hibernate.xmlgen.XmlAttribute;
import net.peelmeagrape.hibernate.xmlgen.XmlElement;

import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@XmlElement(name="return-property")
public @interface ReturnProperty
{
    @XmlAttribute String name();
    @XmlAttribute String column() default "";
    ReturnColumn[] columns() default {};
}
